package com.hebeu.gfh.mapper;

import com.hebeu.gfh.pojo.po.ClubMember;
import com.hebeu.gfh.pojo.po.Clubs;
import com.hebeu.gfh.pojo.po.User;
import com.hebeu.gfh.pojo.vo.userIdAndClubId;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 刘剑利
 * @Version: v1.0
 */
@Repository
@Mapper
public interface ClubMemberMapper {
    //根据社团id查询社团成员
    public List<User> findClubMember(int clubId);
    //加入社团
    public void joinClub(ClubMember clubMember);
    //退出社团
    public void exitClub(int memberId);

    List<User> findClubManager(int clubId);

    List<Clubs> findClubsListByuserId(int userId);

    public List<User> findAllMember(int clubId);

    public Integer findmemberId(userIdAndClubId userIdAndClubId);

    public void updateroleinclub(userIdAndClubId userIdAndClubId);


}
